package com.zzyl.nursing.service;

import java.util.List;
import java.util.Map;

import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.DoNursingTaskDto;
import com.zzyl.nursing.vo.NursingTaskVo;

/**
 * 护理任务Service接口
 * 
 * @author zzyl
 * @date 2025-10-31
 */
public interface INursingTaskService extends IService<NursingTask>
{

    /**
     * 查询护理任务列表
     * 
     * @param params 护理任务
     * @return 护理任务集合
     */
    public List<NursingTask> selectNursingTaskList(Map<String, Object> params);

    /**
     * 任务执行
     * @param dto
     */
    void doNursingTask(DoNursingTaskDto dto);

    /**
     * 任务取消
     * @param taskId
     * @param reason
     * @param username
     */
    void cancelTask(Long taskId, String reason, String username);

    /**
     * 任务改期
     * @param dto
     */
    void updateTimeNursingTask(DoNursingTaskDto dto);

    /**
     * 生成月度护理任务
     * @param elder 老人信息
     */
    void generateMonthlyTask(Elder elder);

    /**
     * 获取护理任务详情
     * @param id
     * @return
     */
    NursingTaskVo getDetailById(Integer id);
}
